var muban_str = function(package_name,panel_name,panel_layer){
let muban = "\
import panel, { panel_zindex } from '../../scripts/orc/panel/panel';\n\
import UI_"+panel_name+" from './"+package_name+"/UI_"+panel_name+"';\n\
import "+package_name+"_Binder from './"+package_name+"/"+package_name+"_Binder';\n\
const { ccclass, property } = cc._decorator;\n\
@ccclass\n\
export default class "+panel_name+" extends panel.panel {\n\
    panel_name: string = '"+panel_name+"';\n\
    server_data: any = {};             //初始数据\n\
    zindex: string = panel_zindex."+panel_layer+";\n\
    _view: UI_"+panel_name+";\n\
    _pview: fgui.GComponent;\n\
    creatUI(){\n\
        "+package_name+"_Binder.bindAll();\n\
        this._view = UI_"+panel_name+".createInstance();\n\
        this._view.makeFullScreen();\n\
        this._view.name = 'ui';\n\
        this._view.node.name = 'ui';\n\
        this._pview.addChild(this._view);\n\
    }\n\
\n\
\n\
    onLoad() {\n\
        this.creatUI();\n\
        \n\
        \n\
    }\n\
    \n\
    \n\
}\
";
    return muban;
}

module.exports={    
    muban_str
};